package com.yangye.otherdemo.threadstarttwicedemo;

/**
 * @author yangye
 * @date 2020/09/16
 *
 * 模拟一个线程启动两次
 * 异常：Exception in thread "main" java.lang.IllegalThreadStateException
 **/
public class ThreadStartTwiceDemo {

	public static void main(String[] args) {
		Thread t = new Thread(() -> {
			System.out.println("线程里的逻辑");
		});
		t.start();
		t.start();
	}
}
